// const validColors = ["primary", "error", "warning", "success", ""] as const;
// type ButtonColorType = typeof validColors[number];

export interface ButtonPropsType {
	color?: string;
	loading?: boolean;
	disabled?: boolean;
	/**
	 * Text before icon.
	 */
	preIcon?: string;
	/**
	 * Text after icon.
	 */
	postIcon?: string;
	/**
	 * preIcon and postIcon icon size.
	 * @default: 14
	 */
	iconSize?: number;
	onClick?: Fn;
}

export const ButtonPropsDefault = {
	color: "",
	iconSize: 14
};
